package com.smartStatus.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户年级班级关联表 实体类
 *
 * @author lby
 * @since 2021-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_grade_class")
@ApiModel(value = "UserGradeClass", description = "用户年级班级关联表")
public class UserGradeClass extends Model<UserGradeClass> {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 年级id
     */
    @ApiModelProperty(value = "年级id")
    private Integer gradeId;

    /**
     * 学校id
     */
    @ApiModelProperty(value = "学校id")
    private Integer tenantId;

    /**
     * 班级id
     */
    @ApiModelProperty(value = "班级id")
    private Integer classId;

    @TableLogic
    private Integer delFlag;
}
